{%extends "adminheader.html.twig"%}



{%block body%}

<div id="content1">
    <p class="big">Edytuj aktualności:</p>
    
    <form action="{{ URL }}_SkyCMS/aktualnosci/zapisz/{{ news['id'] }}" name="form_dodaj" method="post" enctype="multipart/form-data">
       <table>
        <tr>
			<td><p>data: </p></td>
            <td><input type="text" name="data"  size="15" value="{{ news['data']|raw }}"></td>
        </tr>
        <tr>
			<td><p>tytuł: </p></td>
            <td><input type="text" name="tytul" size="40" value="{{ news['tytul']|raw }}"></td>
        </tr>
        <tr>   
            <td><p><b>Zdjęcie:</b></p></td>       
            <td>
                <p>(200x200): <input type="file" name="zdjecie">
               <input type="hidden" name="nazwa_zdjecia" size="2"></p>
            </td>
        </tr>
        <tr>
			<td><p class="head">zajawka: </p></td>
            <td><textarea type="text" name="news_short" rows="2" cols="40">{{ news['news_short']|raw }}</textarea></td>
        </tr>
        <tr>
            <td><p class="head">news: </p></td>
            <td><textarea type="text" name="news_long" rows="10" cols="40">{{ news['news_long']|raw }}</textarea></td>
        </tr>
		<tr>
		   <td colspan="2" style="text-align:right;">
                    <input class="button2 "type="submit" name="submit" style="" value="zapisz">
                    
                        <input type="submit" name="podglad" value="podgląd" class="button2" onclick="this.form.action='{{ URL }}_SkyCMS/aktualnosci/podglad/aktualnoscid={{ news['id'] }}';this.form.target='nowe_okno';">
                    </td>
                  </td>
                </tr>
    </table>
</form>
    
</table>
</div>

{%endblock%}